Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix and rewrite bytebuf api #218

Merged
merged 10 commits into from
May 25, 2024
Merged

Conversation

Lumine1909
Copy link
Contributor

重写了api,适配 1.20.6
支持更多数据包,添加了数据包监听功能
所有新内容已完成本地测试
食用方法: https://github.com/Lumine1909/BytebufAPIExample

Copy link
Member

@s-yh-china s-yh-china left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可能需要对一些文件进行更多格式化

@Lumine1909 Lumine1909 requested a review from s-yh-china May 22, 2024 21:38
Copy link
Member

@s-yh-china s-yh-china left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

首先,格式化,格式化,格式化
然后我不明白,为什么要独立出一个Handler,而不是直接使用原有的事件系统?

@Lumine1909
Copy link
Contributor Author

现在格式应该没问题了(吧)

@Lumine1909 Lumine1909 requested a review from s-yh-china May 23, 2024 05:03
@Bluemangoo
Copy link
Member

我觉得除了新开一个handler以外都还好。

改成类似wrapper?

@Lumine1909
Copy link
Contributor Author

感谢反射和泛型
感谢反射和泛型
感谢反射和泛型

添加了chat component的支持,具体见 https://github.com/Lumine1909/BytebufAPIExample

@Lumine1909
Copy link
Contributor Author

我觉得除了新开一个handler以外都还好。

改成类似wrapper?

新开是因为bukkit的event实现可能有性能问题(详见群)

@Bluemangoo
Copy link
Member

(详见群)

我现在够不到QQ群啊(大叫),discord and github only.

@Lumine1909
Copy link
Contributor Author

(详见群)

我现在够不到QQ群啊(大叫),discord and github only.

bkapi的 callEvent用到了反射,而packet是一个极其频繁的事件 可能导致之后

Copy link
Member

@s-yh-china s-yh-china left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得应该没什么问题了,稍微测试一下就合吧

@s-yh-china s-yh-china merged commit 46ac3c6 into LeavesMC:master May 25, 2024
1 check passed
@Lumine1909 Lumine1909 deleted the bytebuf-api branch May 25, 2024 17:57
Lumine1909 added a commit to Lumine1909/LeavesFork that referenced this pull request Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants